{include file="file:$admin_theme_global_path/_header.tpl"
	masthead=$page_title pageTitle=$page_title current="pageparts_admin_listparts"}
<div class="grid_13">
	<div class="grid_16 breadcrumb alpha omega">
		<a href="{url}/pageparts/admin/index{/url}">{t}Site Content{/t}</a>
		&raquo;
		{$page.category_name} - {$page.title}
	</div>
</div>
<div class="grid_3">
	<a target="_blank" class="button large"
		href="{url}/pageparts/index/index/id/{$page_id}/preview/1{/url}">{t}Preview This Page{/t}</a><br />
</div>
<div class="grid_16">
	&nbsp;
</div>
<div class="grid_16">
	<div class="grid_16 faux-thead alpha omega">
		<div class="grid_9 alpha">{t}Content Areas{/t}</div>
		<div class="grid_2 center">{t}Author{/t}</div>
		<div class="grid_2 center">{t}Version{/t}</div>
		<div class="grid_3 omega">{t}Date Modified{/t}</div>
	</div>
	{foreach from=$pageparts item=pagepart key=index}
		<div class="grid_16{if ($index + 1) mod 2 eq 0} even{else} odd{/if} faux-tr alpha omega">
			<div class="grid_9 alpha">
				<a href="{url}/pageparts/admin/listcontent/part_id/{$pagepart.id}{/url}">
					{$pagepart.category_name} - {$pagepart.page_title} - {$pagepart.name}</a>
			</div>
			<div class="grid_2 center">
				{if isset($pagepart.latest_version)}
					{$pagepart.latest_version.last_modified_by_username}
				{else}
					-
				{/if}
			</div>
			<div class="grid_2 center">
				{if isset($pagepart.latest_version)}
					{$pagepart.latest_version.version}
				{else}
					-
				{/if}
			</div>
			<div class="grid_3 omega">
				{if isset($pagepart.latest_version)}
					{$pagepart.latest_version.last_modified_on}
				{else}
					-
				{/if}
			</div>
		</div>
	{/foreach}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
